package cz.cvut.fit.bugtrac.publicmodel.dto.graph;

import java.util.Date;
import java.util.Set;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlTransient;

import cz.cvut.fit.bugtrac.publicmodel.dto.BaseDTO;

/**
 * 
 * @author czebrpet
 * 
 */
public class GraphDTO extends BaseDTO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Set<EdgeDTO> edges;

	private Integer size;
	private Integer edgeSize;

	private Date created;

	/**
	 * @return the created
	 */
	public Date getCreated() {
		return created;
	}

	/**
	 * @param created
	 *            the created to set
	 */
	@XmlAttribute(name = "created")
	public void setCreated(Date created) {
		this.created = created;
	}

	/**
	 * @return the edges
	 */
	public Set<EdgeDTO> getEdges() {
		return edges;
	}

	/**
	 * @param edges
	 *            the edges to set
	 */
	@XmlTransient
	public void setEdges(Set<EdgeDTO> edges) {
		this.edges = edges;
	}

	/**
	 * @return the size
	 */
	public Integer getSize() {
		return size;
	}

	/**
	 * @param size
	 *            the size to set
	 */
	@XmlAttribute(name = "node")
	public void setSize(Integer size) {
		this.size = size;
	}

	/**
	 * @return the edgeSize
	 */
	public Integer getEdgeSize() {
		return edgeSize;
	}

	/**
	 * @param edgeSize
	 *            the edgeSize to set
	 */
	@XmlAttribute(name = "edge")
	public void setEdgeSize(Integer edgeSize) {
		this.edgeSize = edgeSize;
	}

}
